package business

import (
	"shop-sys/service"
)

var impl *serviceImpl

func RegisterSysService() {
	impl = &serviceImpl{
		SysMenuService: service.NewSysMenuService(),
		SysUserService: service.NewSysUserService(),
		SysRoleService: service.NewSysRoleService(),
		SysLogService:  service.NewSysOtherService(),
	}
}

type serviceImpl struct {
	SysMenuService service.ISysMenuService
	SysUserService service.ISysUserService
	SysRoleService service.ISysRoleService
	SysLogService  *service.SysLog
}

func ServiceImpl() *serviceImpl {
	return impl
}
